﻿#include "accdialog.h"
#include "ui_accdialog.h"
#include <QMovie>
#include <QDesktopServices>
#include <QUrl>
#pragma execution_character_set("utf-8")

accDialog::accDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::accDialog)
{
    ui->setupUi(this);

    this->setWindowTitle("我喜欢你");
    ui->label->setScaledContents(true);
    setWindowIcon(QIcon("://love.ico"));
    //设置动画
    QMovie *mymove = new QMovie("://biu.gif");
    ui->label->setMovie(mymove);
    mymove->start();

}

accDialog::~accDialog()
{
    delete ui;
}

void accDialog::on_pushButton_clicked()
{
    //QDesktopServices::openUrl(QUrl(QLatin1String("http://www.ivint.cn")));
    btnBox->show();
    btnBox->setWindowIcon(QIcon("://love.ico"));
    btnBox->setText("<font size='26' color='red'>往后余生，风雪是你~</font>");
    btnBox->setWindowFlags(windowFlags()&~Qt::WindowCloseButtonHint&~Qt::WindowContextHelpButtonHint);//禁止退出按钮
}
